const fs = require('fs')

fs.stat('../2/笑看风云.mp4', (err, data) => {
  if (err) {
    console.log('失败')
    return
  }
  // console.log(data)
  console.log(data.isFile())
  console.log(data.isDirectory())
})
